#define _CRT_SECURE_NO_WARNINGS 1
#include"vector.h"

int main()
{
	/*yss::vector<int> v;
	v.push_back(1);
	v.push_back(2);
	v.push_back(3);
	v.push_back(4);
	v.push_back(5);
	auto it = v.begin();
	while (it != v.end())
	{
		cout << *it << " ";
		++it;
	}
	cout << endl;*/

	yss::vector<int> v;
	v.push_back(1);
	v.push_back(2);
	v.push_back(3);
	v.push_back(4);
	v.push_back(5);
	for (auto e : v)
	{
		cout << e << " ";
	}
	cout << endl;
	cout << v.size() << endl;
	cout << v.capacity() << endl;
	v.resize(10, 9);
	for (auto e : v)
	{
		cout << e << " ";
	}
	cout << endl;
	cout << v.size() << endl;
	cout << v.capacity() << endl;

	/*yss::vector<int> v;
	v.push_back(1);
	v.push_back(2);
	v.push_back(3);
	v.push_back(4);
	cout << v.size() << endl;
	v.pop_back();
	cout << v.size() << endl;*/

	/*yss::vector<int> v(10, 7);
	for (auto e : v)
	{
		cout << e << " ";
	}
	cout << endl;*/

	/*yss::vector<int> v;
	v.push_back(1);
	v.push_back(2);
	v.push_back(3);
	yss::vector<int> v1(v.begin(), v.end());
	for (auto e : v1)
	{
		cout << e << " ";
	}
	cout << endl;*/

	/*yss::vector<int> v1;
	v1.push_back(1);
	v1.push_back(2);
	v1.push_back(4);
	yss::vector<int> v2(v1);
	for (auto e : v2)
	{
		cout << e << " ";
	}
	cout << endl;*/

	/*yss::vector<int> v1;
	v1.push_back(1);
	v1.push_back(2);
	v1.push_back(4);
	yss::vector<int> v2 = v1;
	for (auto e : v2)
	{
		cout << e << " ";
	}
	cout << endl;*/

	/*yss::vector<int> v;
	v.push_back(1);
	v.push_back(2);
	v.push_back(3);
	v.push_back(4);
	v.push_back(5);
	auto pos = find(v.begin(), v.end(), 3);
	v.insert(pos, 100);
	for (auto e : v)
	{
		cout << e << " ";
	}
	cout << endl;*/

	/*yss::vector<int> v;
	v.push_back(1);
	v.push_back(2);
	v.push_back(3);
	v.push_back(4);
	v.push_back(5);
	auto pos = find(v.begin(), v.end(), 3);
	v.erase(pos);
	for (auto e : v)
	{
		cout << e << " ";
	}
	cout << endl;*/

	/*yss::vector<int> v;
	v.push_back(2);
	v.push_back(3);
	v.push_back(4);
	v.push_back(5);
	yss::vector<int> v1(v);
	for (auto e : v1)
	{
		cout << e << " ";
	}
	cout << endl;*/

	/*yss::vector<int> v;
	v.push_back(2);
	v.push_back(3);
	v.push_back(4);
	v.push_back(15);
	yss::vector<int> v1 = v;
	for (auto e : v1)
	{
		cout << e << " ";
	}
	cout << endl;*/

	/*yss::vector<int> v;
	v.push_back(2);
	v.push_back(3);
	v.push_back(24);
	v.push_back(15);
	for (size_t i = 0; i < v.size(); i++)
	{
		cout << v[i] << " ";
	}
	cout << endl;*/

	

	return 0;
}